//home厂库模块
import {reqBaseCategoryList} from '@/api/api.js'
const state={
    b:123,
    categoryList:[]
};
const mutations={
    CATEGORTLIST(state,categoryList){
        state.categoryList=categoryList;
    }
};
const actions={
    async categoryList({commit}){
        var res = await reqBaseCategoryList()
        if(res.code==200){
            commit("CATEGORTLIST",res.data)
        }
    }
};
const getters={};

export default{
    state,
    mutations,
    actions,
    getters,

}